package main

import "fmt"

func main()  {
	arrTest3()
}

func arrTest()  {
	arr := [3]string{"a","c","b"}
	for k,v := range arr {
		println(k,v)
	}
}

func arrTest2()  {
	var a [4]int
	b := [4]int{2,5}
	c := [4]int{5,3:10}
	d := [...]int{1,2,3}
	e := [...]int{4,5:30}
	fmt.Printf("%v%v%v%v%v",a,b,c,d,e)
}

func arrTest3()  {
	a := [...]int{2,3}
	p := &a //数组指针
	p[1] += 11
	println(p[1])
}
